package com.zm.shop.feign;

import com.zm.shop.common.entity.GoodsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "shop-05-goods",path = "/goods")  //监听/goods路径下的 GoodsService接口
public interface GoodsService {

    // 请求路径是/goods/getAll
//    @GetMapping("/getAll")
//    public List<GoodsEntity> getAll();

}
